# coding=utf-8

import web

import settings
import utils
from config import menu

render = settings.RENDER

class index(object):
    def GET(self):
        return render.admin.index(menulist = menu)

class home(object):
    def GET(self):
        return render.admin.home()

class login(object):
    def GET(self):
        return render.admin.login()

    def POST(self):
        web.seeother('/');
